//
//  PopupView.m
//  MatrixProject
//
//  Created by 陈德军 on 2017/4/21.
//  Copyright © 2017年 ChenDJ. All rights reserved.
//

#import "PopupView.h"
#import <MBProgressHUD.h>

@implementation PopupView
+ (void)showMessageStr:(NSString *)MessageStr
{
    //显示提示信息
    UIWindow *view = [[UIApplication sharedApplication].delegate window];
    MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES];
    hud.userInteractionEnabled = NO;
    hud.mode = MBProgressHUDModeText;
    hud.labelText = MessageStr;
    hud.color = [UIColor blackColor];
    hud.labelColor = [UIColor whiteColor];
    hud.margin = 14.f;
    hud.yOffset = 180;
    hud.removeFromSuperViewOnHide = YES;
    [hud hide:YES afterDelay:2];
}
@end
